// https://cn.windicss.org/
import 'virtual:windi.css'

// 引入element功能型组件的css
// import "element-plus/theme-chalk/index.css";
import "element-plus/theme-chalk/el-message.css";
import "element-plus/theme-chalk/el-notification.css";
import "element-plus/theme-chalk/el-message-box.css";
import "element-plus/theme-chalk/el-tree.css";
import "element-plus/theme-chalk/el-upload.css";

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// 全量引入Element图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import print from 'vue3-print-nb' //引入打印插件

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

const app = createApp(App)

// 注册全局 element-icons 组件
// https://element-plus.gitee.io/zh-CN/component/icon.html#图标集合
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(createPinia().use(piniaPluginPersistedstate));
app.use(router);
app.use(print)
app.mount('#app');
